<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="org.apache.struts2.ServletActionContext"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>控制面板</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
    <link rel="stylesheet" type="text/css"
			href="./styles/control_panel.css">
			
			  <script src="./javaScripts/jquery-1.5.1.min.js" type="text/javascript"></script>
	 <STYLE type="text/css">
	  #tb_msg td{
	      border-bottom: 1px solid #F5FAFE;
	      line-height: 28px;
	      padding-top: 1px;
	      padding-bottom: 1px;
	       
	  }
	 
	  .page_{
	   float: left;
	   width: auto!important;
	   width: 40px;
	   min-width: 40px;
	   max-width: 60px;
	   line-height: 28px;
	   padding-top: 1px;
	   padding-bottom: 1px;
	   text-align: center;
	   border: 1px solid #cccccc;
	   margin-right: 6px;
	   margin-top: 10px;
	   color: #2764b7;
	 
	  }
	  #pag_prev, #pag_next{
	  width: 60px;
	  }
	  #page_con a{
	     color: #2764b7;
	     font-size: 14px;
	     text-decoration: none;
	    
	  }
	   .page_after{
	    background-color: #2764b7;
	    color: white;
	     float: left;
	   width: auto!important;
	   width: 40px;
	   min-width: 40px;
	   max-width: 60px;
	   line-height: 28px;
	   padding-top: 1px;
	   padding-bottom: 1px;
	   text-align: center;
	   border: 1px solid #cccccc;
	   margin-right: 6px;
	   margin-top: 10px;
	   color: #2764b7;
	   } 
	  .tb_msg_ .tr_after{
	      background-color: #e7f4fd;
	  }
	  .tb_msg_ td{
	    border-top: 1px solid #cfd8e1;
	    padding-top: 1px;
	    padding-bottom: 1px;
	    line-height: 28px;
	    font-size: 14px;
	  }
	  .tb_msg_{
	   background-color: #f5fafe;
	  }
	 </STYLE>
	 <script type="text/javascript">
	    var cacheStyle;
	    $(document).ready(function(){
	       
	      $('#page_con a').each(function(){
	           $(this).mousemove( function(){
	         $(this).css({cursor:" pointer"});
	      });
	       $(this).bind('click',function(){
	                cacheStyle=$(this).find(".page_").removeClass().addClass("page_after");
	                 
	              
	       });
	    });
	      
	    $('.tb_msg_ tr').each(function(){
	            $(this).mousemove(function(){
	              $(this).css({cursor:" pointer"}).removeClass().addClass("tr_after");
	              
	            });
	            $(this).mouseout(function(){
	              $(this).removeClass();
	            });
	            
	    });
	    });
	    function viewPost(id){
	      top.location.href="<%=basePath%>"+"post/post_queryPostById?id="+id;
	    }
	 </script>
  </head>
  
  <body style="margin-top: 0px; margin-left: auto; margin-right: auto; text-align: center;">
 
      <div id="main">
         <div style="text-align: left;width: 100%;line-height: 20px;height: 30px;font-size:12px;margin-bottom: 4px;" class="tip_a">当前位置：<a href="<%=basePath%>index.jsp">首页</a><span>&nbsp;>>&nbsp;</span><a href="<%=basePath%>bbs/index.jsp">论坛</a><span>&nbsp;>>&nbsp;</span>
				    我的话题
				   </div>
          
        <div id="containe">
               <iframe src="<%=basePath%>bbs/post/post_queryPostListByAuthor?authorId=${sessionScope.userDto.id}" frameborder="0" width="98%" scrolling="no" height="540px;" align="right" style="margin-right: 0px; padding-right: 0px" id="title" name="title"></iframe>
          </div>
        <div id="sidebar">
             <div id="sidebar_01">
              <div id="sidebar_011">个人管理</div>
               <div>
                  <ul>
                   <li><a href="">短消息</a></li>
                   <li>我的 
                      <ul>
                        <li><a href="bbs/post/post_queryPostListByAuthor" target="title">我的话题</a></li>
                         <li><a href="bbs/post/reply_queryReplyByAuthor?replyAuthorId=${sessionScope.userDto.id}" target="title">我的回复</a></li>
                        <li><a href="">我的收藏</a></li>
                        <li><a href="">我的订阅</a></li>
                        <li><a href="">我的权限</a></li>
                        <li><a href="">我的好友</a></li>
                      </ul>
                   </li>
                   <li>
                    <li>控制面板
                      <ul>
                       <li><a href="./bbs/controlPanel.jsp">控制面板首页</a></li>
                       <li><a href="./bbs/user/editorUserInfo.jsp" target="title">编辑个人资料</a></li>
                       <li>积分</li>
                      </ul>
                    </li>
                   </li>
                  </ul>
               </div>
             </div>   
             </div>   
           <!--  
              <div id="sidebar_02">
               
               <div id="sidebar_021">论坛积分</div>
             </div> 
              -->
      </div>
      <div class="clear"></div>
      </div>
  </body>
</html>
